import request from '@/utils/request'

// 查询销售方信息列表
export function listInvoiceSales(query) {
  return request({
    url: '/business/invoiceSales/list',
    method: 'get',
    params: query
  })
}

// 查询销售方信息详细
export function getInvoiceSales(id) {
  return request({
    url: '/business/invoiceSales/' + id,
    method: 'get'
  })
}

// 新增销售方信息
export function addInvoiceSales(data) {
  return request({
    url: '/business/invoiceSales',
    method: 'post',
    data: data
  })
}

// 修改销售方信息
export function updateInvoiceSales(data) {
  return request({
    url: '/business/invoiceSales',
    method: 'put',
    data: data
  })
}

// 删除销售方信息
export function delInvoiceSales(id) {
  return request({
    url: '/business/invoiceSales/' + id,
    method: 'delete'
  })
}
